// 路由拆分-存放所有desktop的接口

import koaRouter from "koa-router"; // 引入路由
import desktopController from "../controller/desktopController";

const desktop = new koaRouter(); // 实例化

// 监听前端路由'/desktop'的get请求
desktop.get('/', desktopController.index);

// 监听前端路由'/desktop/img'的get请求
desktop.get('/img-list', desktopController.getImgList);

// 导出desktop给router/index.ts使用
export default desktop
